package com.one.group.model.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

/**
 * {@code @Create:}  2025-09-28  14 : 55
 * {@code @Author:} Cherry
 * {@code @ToUser:} 凡是发生,皆有利于我。
 * ------------------------------------
 * {@code @note:}
 */
@Data
public class AdminDto implements Serializable {


    @Pattern(regexp = "^\\w{5,18}$",message = "用不名不合法")
    private String username;

    @Pattern(regexp = "^((13[0-9])|(19[1-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$",message = "手机号码不合法")
    private String phone;

    @Email(message = "邮箱不能为空")
    private String email;

    @NotBlank(message = "姓名不能为空")
    private String name;

    @NotBlank(message = "头像地址不能为空")
    private String imageUrl;
}
